//
//  YJRegisterReturnModel.swift
//  test
//
//  Created by 14110100912 on 2017/9/26.
//  Copyright © 2017年 熊书鸿. All rights reserved.
//

import UIKit

class YJRegisterReturnModel: NSObject {
    var success:NSString
    var msg:NSString
    
    override init(){
        success = NSString()
        msg = NSString()
    }
    class func logonReturnModelWithDict(_ dict: NSDictionary)->YJRegisterReturnModel{
        
        let model = YJRegisterReturnModel()
        
        //根据字典，进行模型的初始化
        let success  = dict.object(forKey: "success") as! NSString
        model.success = success
        if success == "0"{
            let msg = "注册信息填写有误"
            model.msg = msg as NSString
        }
        return model
    }
    
}
